Smush\Core\Parser\Parser B

Total Complexity 97
Dependencies 7
Dependents 4
Total lines 528
Lines of code 354
Logical lines of code 225
Comment lines 86
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
get_element_background_image()
A
46 10 39
get_composite_elements()
A
50 8 28
get_elements_matching_pattern()
A
51 8 25
get_iframe_elements()
A
52 8 22
get_element_attributes()
S
52 6 26
extract_background_image()
S
53 5 24
get_inline_styles()
S
58 5 14
remove_quote_entities()
S
59 5 14
get_image_urls()
S
55 4 20
sanitize_value()
S
60 4 13
get_element_attribute_value()
S
61 4 12
get_top_level_element_and_position()
S
55 3 19
add_attribute_to_self_closing_element()
S
62 4 10
add_attribute_to_element()
S
58 3 14
get_base_url()
S
67 3 7
get_self_closing_element_and_position()
S
61 2 11
get_inline_style_blocks()
S
68 2 7
get_tags()
S
66 2 8
get_block_by_tag()
S
67 2 7
__construct()
S
80 1 3
get_elements_with_image_attributes()
S
72 1 5
get_elements_with_id_attribute()
S
74 1 4
get_elements_with_class_attribute()
S
74 1 4
get_elements_with_image_url()
S
74 1 4
add_element_attribute()
S
74 1 4
remove_element_attribute()
S
78 1 3
markup_contains_noscript()
S
78 1 3
is_safe()
S
76 1 4